import request from '@/utils/request';
import { getCookie } from '@/utils/authority';

export async function queryAppJobLogList(params) {
  return request('/api/app/job/logList', {
    params,
    headers: {
      'login-token': getCookie('tks'),
    },
  });
}

export async function delJobLog(params) {
  return request('/api/qz/logRemove', {
    params,
    headers: {
      'login-token': getCookie('tks'),
    },
  });
}

export async function delBatchJobLog(params) {
  return request('/api/qz/logRemoveBatch', {
    method: 'POST',
    headers: {
      'login-token': getCookie('tks'),
    },
    data: { ...params },
  });
}
